using System;
using System.Collections.Generic;
using UniversalAdmin.Domain.Entities;

namespace UniversalAdmin.Domain.Entities.App;

public class ArticleCategory : EntityBase
{
    public string Name { get; set; } = string.Empty;
    public string? Description { get; set; }
    public Guid? ParentId { get; set; }
    public int Sort { get; set; } = 0;

    // Navigation properties
    public virtual ArticleCategory? Parent { get; set; }
    public virtual ICollection<ArticleCategory> Children { get; set; } = new List<ArticleCategory>();
    public virtual ICollection<Article> Articles { get; set; } = new List<Article>();
}
